package com.sheyu.mall.product.service;

import com.sheyu.mall.product.dao.brand.BrandDao;
import com.sheyu.mall.product.entity.brand.BrandEntity;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.swing.*;
import java.util.ArrayList;
import java.util.List;

/**
 * @author sheyu
 * @Desciption:
 * @date 2020/10/10 1:41 下午
 */

@SpringBootTest
@RunWith(SpringRunner.class)
public class Brand {

    @Autowired
    private BrandDao brandDao;

    @Test
    public void testSelectBatchIdsBySQL(){
        List<Long> brandIds = new ArrayList<>();
        brandIds.add(1L);
        List<BrandEntity> brandEntities = brandDao.selectBatchIdsBySQL(brandIds);
        System.out.println(brandEntities);
    }
}
